package com.muke.service.impl;/**
 * Created with IntelliJ IDEA.
 * Date: 2019-10-9.
 * Time: 13:26.
 * Explain:
 *
 * @author hezx
 */

import com.muke.dao.SuccSecKillDao;
import com.muke.service.SuccSecKillService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * @ClassName SuccSecKillServiceImpl
 * @Description: 秒杀记录 service
 * @Author hezx
 * @Date 2019-10-9 
 * @Version V1.0
 **/
@Service
public class SuccSecKillServiceImpl implements SuccSecKillService {

    @Resource
    private SuccSecKillDao succSecKillDao;

    @Override
    @Transactional
    public int save(Long secKillId,Long userPhone) {
        return succSecKillDao.insertSuccSecKill(secKillId,userPhone);
    }
}
